<!DOCTYPE html>
<html>
<head>
<title>餐桌管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
    <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>

    <script src="/static/layer/layer/layer.js"></script>
<style>
    a{text-decoration:none;}
</style>
</head>
<body >
<div class="container-fluid">
    <table class="table table-sm table-hover table-striped">
        <thead>
            <th>序号</th>
            <th>餐桌号</th>
            <th>适用人数</th>
            <th>说明</th>
            <th>桌型</th>
            <th>录入人</th>        
            <th>录入时间</th>
            <th>是否启用</th>
            <th>
                <button type="button" class="btn btn-sm btn-primary" >
                    <a href="/index.php/table/table_add" alt="新增餐桌(New table)"><span class="bi-plus-lg" style="color:white;"></span></a>
                </button>
            </th>
        </thead>
        <tbody>
            {foreach $list['data'] as $k=>$kv}
            <tr>
                <td>{$k+1}</td>
                <td>{$kv['name']}</td>
                <td>{$kv['num_of_p']}</td>
                <td>{$kv['title']}</td>
                <td>{$kv['type_name']}</td>
                <td>{$kv['creater_name']}</td>
                <td>{$kv['create_time']}</td>
                {if $kv['status']==2}
                    <td style="text-decoration:line-through;color:red;">{$kv['status_name']}</td>
                {else}
                    <td>{$kv['status_name']}</td>
                {/if}
                <td>
                    <a href="/index.php/table/edit/id/{$kv['id']}">
                        <button class="btn btn-sm btn-info"><span class="bi-pencil"></span></button>
                    </a>
                </td>
            </tr>
            {/foreach}

        </tbody>    
    </table>
    {include file="common/pagination"}
</div>

</body>

<script type="text/javascript">
  

</script>


</body>
</html>
